package com.ny.wlw;

public class Person {
    private String name;
    private int money;
    public void setMoney(int money){
        if(money<0){
            System.out.println("你输入的金额有问题");
        }else{
            this.money=money;
        }
    }
    public int getMoney() {
        return money;
    }
    public void setName(String name){
        this.name=name;
    }

    public String getName() {
        return name;
    }
}
